
public class Home {
	private int hno;
	private String hname;
	private Worker leader;
	private Worker[] workers;
	public Home(String hname,int hno)
	{
		this.hname=hname;
		this.hno=hno;
	}
	public void setworkers(Worker[] workers){
		this.workers=workers;
	}
	public void sethno(int hno){
		hno=hno;
	}
	public void sethname(String hname){
		hname=hname;
	}
	public void setleader(Worker leader){
		this.leader=leader;
	}
	public int gethno(int hno){
		return hno;
	}
	public String gethname(String hname){
		return hname;
	}
	public Worker getleader(Worker leader){
		return leader;
	}
}
